package com.ny.service;

import com.ny.entity.User;

import java.util.List;

public interface UserService {
    public List<User> findAllUser();
    public User login(String username, String password);
    public User findUserByUsername(String username);
    //注册
    public int registerUser(User user);

    // 发送邮箱验证码
    public void sendEmailCode(String email);
    
    // 检查验证码
    boolean checkCode(String email, String code);

    User findUserByEmail(String email);
    int updatePasswordByEmail(String email, String password);
    int addUser(User user);
}
